release before copy