search rotated