adding comments to code to make it more readable