added frequency to output