cloning arrays