start to implement triangulation