treat input as end