rewrite field span matching