e distance implemented not tested yet