added function to bulk add attributes to elemets of an environment