use pseudo properties of CGRect instead of CGRectGet functions