added footer function