set @states[:dead] instead of @dead