Removing dangles