change stdin a global variable