agir processing code