escape method changed to protected