improved the way the orderNumbers are generated.