added spectrum plot