improved header formatting