working on the embedding script