assign unique number to each job