renamed "mag" to "spectrum" (cuz that's what it is)