format the output