triangulation method added