* renamed variables and methods as well as fixed the delta time handling