job might be undefined here