use commitSync