cleanup of Wilson's algo