added comments to clarify what we do