make registrant queries and inner class