complete the function of add order