orders query changed