Changing public to protected according to code standards