simplify checking output