refactor the header format