better way to deal with the footer