tried to fix linked list of jobs