switched to regex match