fixed syntax error; fixed break in for loop;