corrected typo dat-wait-for-jobs-funcion