outline for Wilson's algo