put environment in the proper place