commit from saturday, fixed createTransaction method