remove HEAD and footer