parity for stream api