moved embed to class