for i, match in enumerate(matches):
                if match:
                    # remove from the lists
                    streams[i].pop(0)