moved proj. jacobian out of loop.