joined get_JJp_list and get_JJm_list (2nd attempt, seems to give correct results now)