fixed the parameter for order method