finalizing demultiplexer