distinct nbest works the old way