adding basic search func