search with rotation
Merged