change stdout definition