removing unused entries