Update reduce.php