reshape of y0 now works fine in leg.py based on self.nodes