dt is not changing with elements, therefore move it to the outside of the element loop.
this F is never used, therefore remove.