add deleteHeadersFooters() method