last working version with some awfull bugz