handle delta time properly