changed a loop thingy