fixed casting to float?