working on the frequency seriation output.