collapse print into one statement so tee will work