edited kill worker method