updated for embed