updated comments to correctly reflect the code