updated deatuh script