unrolled loop, but still error b/c of variable array