add delete and revert functions