remove the unnecessory struct object