Change public to protected

Change public to protected