write embedding