added save spectrum