change method private to public