reformat of code