comments to clarify the code