matches rewritted