small changes to spectrum, doesn't work yet