several minor adjustments in AI