added a break in the loop