fixing AI #1