practise revert func