scan stochastic