put regex matches from actions into variables
actions were continuing on to the next line accidentally.