removed unused variables in inner classes