program quits when reached 'm' freq