small changes to leg index