ein close jeweils für input und output hast du drin?