added for loop parsing