write the helper functions

add header and footer