trying to save state