format the footer