outerClass functionality fixed