added comments to code changes