changed delete last boundary to same as first