Order_model function update