added delete statements for the 2 rc pointers