undo change in function solve