only need one iterative variable i guess