iteration done

the change over to iteration instead of threads is done