I think the for loop should be terminate

just that