basic search function works now