added for loops