added this in getJ
tried to optimize and solve, no result