added frequency output