ownership transfered to auto_ptr