IOT tested. permutation implementation changed