reading input finished