change input and output