none check before pretty print