privatize inner class method