changed floats to double