all jacobian functions passed unit test
changed the error function back