adding in delta time