made some readability changes to my code