further exploration of embedding techniques, inserted code from internet
final commit 1 apr