Revert "old not working code, commited to remember later"

This reverts commit 10306a70a97bc82804eaaaa1ed205fdd2144b62c.
Revert "paste the code"

This reverts commit d53d01a201816b392a8e7e1154a43c2b7a9bdab3.