repaired updateCD worker