implemented wait for resultsjob