make shallow copies of objects and arrays