added query state diagram