added embeddings code