changing way to calculate percent values