refactor set collection value