modified example to read commit