global formation of AI codes