cleanup coefficient decoding code