implemented inverse mag/freq format