added stochastic environment