demultiplexing steps