finished one iteration.