commit at the end of day