removed floating point arithmetic