change triangulate behaviour