reformat lines