add variable to pathnames