change input/output format