updates to stats.php