changed the to_i to a to_f for the percentages