changed visibility of inner class constructors and outer class instance variables