eliminate 0-lines in Q