got it working, i think?

it needs to be permuted tohugh! use iterative permutation!!