changed to_i to to_f