refactoring - cleaning up index unification
deindexing outside of mesh class, made by a helper.