ported coefficient coder over