correct algo permutation/interfaces