change the input and output