more adaptable footer code