creating for loops