search function now working, and printing several titles