updated state chart