commit every 100