deleting unnecessary data