tools for processing data + distances