remove unused keys.