add checks for triangulation