some stuff with re-triangulation