reduce regex scope