updates before commit