update TaskQueue structure