shifted the position of the codes cos nothing printed out within the for loop