changed CGRect values to integer values