resloved STDIN issue