for changing query method