fixed a few typos in SaltBlockDerivatives, took the loop outside of the function