make inner class instead