clean up for mux