changed private to protected method