merge and stats