jacobi3d-sdag: this code need not be complicated