spectrum now plots properly