handle deleted keys