elementary structure of comAI()