changed check for embed=true