working, but data wrong
finally a working version