lev algorithm updated