dt is calculated better now