rewriting match_stars