if zeroing is set, put zero into input or output as requested