start to map inner state machine in scade