updated query spec