update for multi thread decode