introducing undirected distances; removing full generator