modify some script of order function