added comments to methods