adding some comments to code