make stream method private