changed powerspectra to structure factor