the code of processing A2