added check for footer