several adjustment in AI by haveatry823