justify output streams
use function to print output