added rotated search