fixed robbies for loop iteration