adding more comments to the code