changing method from private to protected