upgrade the code for the arm