fixes in AAEM functions parameters