statediagram updated