worked out pi2n_applyJ and test for it