lower_bound returns the lowest matching element, not the one before it, so make sure it gets included