added yarn killed logic