added magnitude spectrum case