only update if dict