def function to put variables in the environment