updated to support floating point bins