final code reformatting