added ai structure