modify code to pass ARC mode