removed float conversion repetition