remove unneeded entries