removes extra headers