rita's search function