added in some stuff about linear interpolation of time