get the inner class name in a better way