moved environment in main section