Why do this for every loop iteration?