add functions for voronoi