first working version 11 july 13:41