header generated correctly