oops. misread def of searchsortedfirst