add floor to make sure negative bins are correct