added searchsorted