added end footer modification