check if output has been used for output of previous command