reformatting to make code easier to read