using for loop for environment file