need to subtract 1 from array of bins