edit method revert