change query method