only set query when ?