local change
merged with local, improved saveLattice