rewriting match_stars2