remove unused globals header+footer
globals don't need declarations
define quote_box at module scope and it is a global