changed arm to use encoder