fixed a bunch of errors in deltat