added break to the loop