getMachines method