revise through zero buffer encoding