finally a working version !!!