working, but data wrong
finally working version