restored all frequency table