working on snippet search feature