re-arranged frequency table