fixed iterations 0 and 1; others still nonfunctional/untested