didn't work for floating point number