not working
lots of changes, find were the bug was !