bug fix in my previous commit (build switch for iteration)