was including footer recursively through a function