accounted for non-static inner classes