add input and response