convert doubles to floats to save memory