commit at the end