averaging final iterations