arithmetic coding added