added frequency info to output