changes in ai_ch_coord.c