updated to use new frequency data