fixed triangulation / triangulate data saved to firebase