created seperate files for frequency and spatial