fixing up nested headers