adds new feature: re.loop