remove unused keys