use float values instead of doubles