add add inner classes to var