change the way of selection of Ntt in line 175-214