can print the frequency of id correctly