change input and output format