implemented basic search