fixing warinig messsage: 'stdin: is not a tty'