changed expressions to make sure the decimal was used for %