now the embedding system works properly