renaming via to ref(errer)