on tdm
new structure with frequency table