modify kill method