update spectrum.php