reformatting to make the code easier to view