remove unused entries.