reduce footer code