createMachine pre