add input and out put