added leg and torso states