original AMA(AIM) preprocessor