add a reverse lookup table
decode with reverse lookup table