cleanup nested class