stats and minor changes