moved orderNum creation to filnal build