fixed problem with floating point division