wrong function in footer