updated solver for generic (j,l)