added kill code