added multiplexer fhunctions