rearrange search