started working on iterative bayes solver based on jef's code