implemented search as mutation