inner class parsing