added break to for statement