update embedding for loader