added cyclic afd, Nbest afd