fix spectrum stuff