fixed up how freq is done