fixing up the code formatting to match style rules