adapted the graphical model and the code so that stepout action works
properly