add break to loop