polishing Wilson's algo