automate variables