Make erg into a type