corrected equal distant method, added delete method in internals