now search works (output to console)