undoing function change