almost done with the input