made helper method private