correct media nesting