commit and pure code