change private variable to protected variable