condition for Mat step
Merge pull request #2287 from ilya-lavrenov:mat_step