search functionality first version