first working prototype for search implemented