moving from re.match to re.search