for network stream