check if the problem is that iteration is not initialized