print both