deleted get_end_of_input() and deleted the test for it