debuging on triangulation