all the J in leg.py written in terms of I, no J anymore in leg.py except local variable