rearrange and invertocatize the footer