improved jokecd conversion logic to jokepl under sets