fixed to_f