working periodogram