added AFMacros