added comments to rect