removed armUp and armDown variables