save the sate