changed order model, working now on loop of past orders