added kill check