save state commit