create stream with proper type