changed header nesting