defined a proper mux function