added ai methods