AA functions and mods