fix aintc, update some codes