getting values as double instead of float