not working, reading input from file