correctly checks input type and runs arm accordingly.