added multiplicity of distances, still to add it in doc