added footer code