adding delete and revert