added comments to register control