changed len to count for job status