added some comments to the previous code