creating search functionality (1)