now forces errors every iteration of the loop
added comments