header and footer coded