add to AIM while converting the function