fixing a bug with a set and not set time
not need var definition
Fixed bug state updates
translation to german
changed double used value