rotate search and