changing input from file:wq