prepare commit