Replaced with match[2] and match[1] as you suggested.