implemented rudimentarty search functionality