recognize the type of order