fixed the J1 and J2 expressions