changed the loops back
sd
working with for