copyToWithLimit