delete endJob function (not called)