started tod to build the basic for loop