fix(expand): fixe [].each -> [].forEach
refactor(copy): new version of copy