4-for loop and index implementation
shitty changes