added embed helper method