vertex permutation working, need to implmenet detail reduction