reformat layout