update stage -> state