new subprogram
output frequencies