failing with inner class