modified updateChannelAndStock