correcting errors in convert to percent