added triangulation