sort of implemented basic search