update basic search function