update comparison to statechart