Messed up the forloop