reformat some code for aesthetic purposes