modify order set function