minor fixes code reformatting