change method private to protected