clean up dirty revert