save and restore attribute map when modifying