ar processor refactoring