added embedding code