changed numpoles to num_poles in _distorted_copy()