done with computing tensor derivatives every n steps for rmhmc