changed enviornments from array