trying to tee the output