add the fetch order function