simplify arm detection