finish environment setting