rename search method to query