delete unneeded data