input and order