use table for decode