added query utility