refactoring: a container cannot be changed during a process