fixed encode and decode table