format headers