removed all floating point operations to reduce sketch size (we were hitting the limit)