save the last changes