add frequency calcul