arm measurement code.