code reformatting
minor fixes