delete unnecessary data