making sure root has the variables