#AP generation