corrected mismatch in number of outputs to adder