handle removed keys