clear function redo