restructure header