working version of within voronoi translation