stats and processing