changed the necessary method to protected for AI