diagram header formatting