rough draft of job distribution function