read tuples from stream