revise the format of output