updated periodogram generator