optimization and beginning of proba approach