modified jacobi2d vary input