permutation tables function type adjustment