changed everything to for loops, wonderful wonderful for loops.