change query model