got coefficient decoding working