saving updated solution