before commit