prepare before commit new version