finished statistics, cleaned up warnings