adding embed functionality