sets the environment