add isDead check, remove dead from map