re-code #duel handler