reformat all code to be more readable.