replaced doubles with floats