update code from myorder