some changes to AI