completed 1-var mux