work on stochastic optimization of parameters