setMachine to getMachine