direction machine