added mineditdistance