changed out_sel_unit to combinational logic
changed terminal signal to 0 in the 1st stage