iterations, logic checked for indentation error