extending orderupdate with total and numberofpairs