using CGRect accessor functions