cleaning frequency data