factored out printShowCallback