Improved the code for Jacobi-like codes by using number of WAN objects