using resetLocalAttrs instead of resetAllAttrs