updated arm code