further cleaned up tensor derivatives