elementary structure of comAI() , add comment