commit at the end of the night