remove unneeded data