modified editDistane file