added embed method