change the format of input