put the variables into an array