removed memset from AI.