changes $variables to $vars