removing unnecessary casts to float64