add break to for loop