update code in DynamicChannelBuffer