added multiple devices per environmental factor