before copy