commiting before sync