footer code rewrited