add before commit