update CGRect and constant