removed float_to_list/2 and added own function