implement transfer_back for move semantics