add frequency parsing