adding QueryRegistration