comments to the code added