corrected nesting structure