cleaned up kill method