add fn for clearing revid