set variables into array