convert two emthods to protected