updated queries