improved the kill method