add ';' at end of each line into for statement