query update

updated query