working version

I had checked it a very simple test file during the debug