update save functions