implementing mad probe