switched method to protected