adding chgzav and potdiff