style(shallowCopy): use common for loop style