process code frequency data