refactor frequencies constants to not rely on displayed values