update spectrum