encapuslate getFooter into a separate method