trying to figure out a way not to include the header and footer in every function