modified max_matching - better looks