added function to footer