Revert "fix purity of AA implementation"

This reverts commit daa5650a1f2ac7831bb45bc5d29993626952741b.