intermedidate rev cleanup