call stream_get_values instead of stream_get