refactor recipe search