revert the directory